Skip to main content

mobileSetSoundChannelVolume

Type

command

Summary

Sets the volume of a sound channel.

Syntax

mobileSetSoundChannelVolume <channel>, <volume>

Description

Use the mobileSetSoundChannelVolume command to control the volume of the given channel.

Changing the volume of a channel affects the currently playing sound and any sounds played subsequently on the channel.

Setting the volume of a non-existent channel results in it being created. This allows the volume to be set before any sounds are played.

Parameters

NameTypeDescription

channel

The name of the channel.

volume

integer

An integer between 1 and 100 where 0 is no volume and 100 is full volume.

Examples

mobileSetSoundChannelVolume theChannel, theVolume
mobileSetSoundChannelVolume "current", 50

command: mobileDeleteSoundChannel, mobilePlaySoundOnChannel, mobilePausePlayingOnChannel, mobileStopPlayingOnChannel, mobileResumePlayingOnChannel

function: mobileSoundChannelVolume, mobileSoundOnChannel, mobileNextSoundOnChannel, mobileSoundChannels, mobileSoundChannelStatus

message: soundFinishedOnChannel

Compatibility and Support

Introduced

LiveCode 4.6

OS

ios

android

Platforms

mobile

Thank you for your feedback!

Was this page helpful?